package com.hy.mydesktop.client.component.mvc.factory;

import com.extjs.gxt.ui.client.mvc.Controller;
import com.hy.mydesktop.client.component.mvc.factory.util.ControllerFactoryUtil;
import com.hy.mydesktop.client.mvc.panel.ContentPanelControler;
import com.hy.mydesktop.client.mvc.panel.tab.TabPanelControler;
import com.hy.mydesktop.shared.persistence.domain.gxt.GxtComponentControllerMetaNodeModel;

public class TabPanelControllerFactory {
	
	public static Controller createTabPanelController(GxtComponentControllerMetaNodeModel gxtComponentMetaModel){
		
		return configureTabPanel(gxtComponentMetaModel);
	}
	
	
	private static Controller configureTabPanel(GxtComponentControllerMetaNodeModel gxtComponentMetaNodeModel){
		
		TabPanelControler tabPanelControler = createDefaultTabPanelControler();
		
		return ControllerFactoryUtil.configureWindow(tabPanelControler, gxtComponentMetaNodeModel);
		/*//为Controller，添加它对应的视图View中，包含的控件的元数据
		 */
	}
	
	private static TabPanelControler createDefaultTabPanelControler(){
		TabPanelControler tabPanelControler = new TabPanelControler();
		
		return tabPanelControler;
	}

}
